/*
 * @Description: 
 * @Author: yyh
 * @Date: 2022-03-31 23:41:41
 * @LastEditors: yyh
 * @LastEditTime: 2022-05-16 02:12:41
 */
var express = require("express");
var router = express.Router();
var scrap = require("../controllers/scrapController");

//新增资产维修接口
router.post("/addScrapInfo",scrap.addScrapInfo);
//修改资产维修接口
router.post("/updateScrapInfo",scrap.updateScrapInfo);
//修改资产维修状态接口
router.post("/updateScrapStatus",scrap.updateScrapStatus);
//删除资产维修接口
router.get("/deleteScrap",scrap.deleteScrap);
//模糊查询、分页查询资产维修接口
router.get("/getScrapInfo",scrap.getScrapInfo);
//通过id查询资产报废信息接口
router.get("/getScrapInfoById",scrap.getScrapInfoById);

module.exports = router;